<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>v-on 绑定函数</title>
    <script src="../js/vue.js"></script>
</head>
<body>
<div id="app">
    <input type="button" value="按钮" v-on:click="run"/>
</div>
</body>
<script>
    let vm = new Vue({
        el: '#app',
        data: {
            run:()=>{
                alert('hhhhhh')
            }
        }
    });
</script>
</html>